<#include "/layout/layout.ftl"/>  
<#macro content>
<title>分页-求租信息</title>
<style type="text/css" >
	 div.growlUI h2, div.growlUI h3 {
		color: red; padding: 5px 5px 5px 45px; text-align: left
	}
</style>
<script type="text/javascript">
	function change(){
		document.location.href="common/path?loc=www/register/register1"
	}
	function apply(){
		if($("#register").validationEngine('validate')){
			$("#register").submit();
		}
	}
	function reject(){
		window.close();
	}
	var preccss = function(){
		$.unblockUI({onUnblock: function(){window.close();}});
	}
	function precssResult( result ){
		if(result=="ok"){
			$.blockUI({ message: '<h1><img src="resources/images/logo2.png" /> 注册成功...</h1>' });
	        $('.blockOverlay').attr('title','Click to unblock').click(preccss); 
		}
		if(result=="fail"){
			 $.growlUI('错误提示', '出现错误没有保存!'); 
		}
		if(result=="same"){
			 $.growlUI('错误提示', '会员ID已经存在!'); 
		}
		if(result=="picerror"){
			 $.growlUI('错误提示', '请确认上传文件类型是否是图片!'); 
		}
		if(result=="big"){
			 $.growlUI('错误提示', '请您将上传附件控制在3M以内!'); 
		}
	}
</script>
<script>
var cacheSelectData = {
		 ocationCode:null,
		 countrys:null,
		 var1:null,
    	var2:null
}
var callbackDosomething = function( htmlJson ){
	 if(htmlJson){
		 cacheSelectData.ocationCode   = eval(htmlJson);
		 var obj =  cacheSelectData.ocationCode ;
			for(var i = 0 ; i < obj.length; i++){
				var value_ = obj[i].keyCd;
				var  name_ = obj[i].valueNm;
				$("#ocationCode").append("<option value='"+value_+"'>"+name_+"</option>"); 
			}
		}
	}
var callbackDosomething1 = function( htmlJson ){
	 if(htmlJson){
		 cacheSelectData.countrys   = eval(htmlJson);
		 var obj =  cacheSelectData.countrys ;
			for(var i = 0 ; i < obj.length; i++){
				var value_ = obj[i].keyCd;
				var  name_ = obj[i].valueNm;
				$("#country").append("<option value='"+value_+"'>"+name_+"</option>"); 
			}
		}
	}
	$.get("commoncode/listbysub/",{ 	groupcode:"JOBINFO",	subcode:"TRADETP"} ,callbackDosomething, "html");
	$.get("commoncode/listbysub/",{ 	groupcode:"COMM",	subcode:"COUNTRY"} ,callbackDosomething1, "html");
    jQuery(document).ready(function(){
         jQuery("#register").validationEngine('attach');
     });
     
      /*******************************************************/
   
    //------
     var callbackDosomething2 = function( htmlJson ){
     	cacheSelectData.var1 = eval(htmlJson);
     	$("#provinceCode").append("<option value=''>"+"----"+"</option>"); 
     	for(var i = 0 ; i < cacheSelectData.var1.length; i++){
				var value_ = cacheSelectData.var1[i].code;
				var  name_ = cacheSelectData.var1[i].name;
				$("#provinceCode").append("<option value='"+value_+"'>"+name_+"</option>"); 
			}
     }
    $.get("commoncode/listbygroup/",{ 	groupcode:"CHINACT" } ,callbackDosomething2, "json");
    //-----------
     
	    $.get("register/chinacity",{  } ,
		    function(jsonV,status,obj  ){
		    	cacheSelectData.var2=jsonV;
		    }
	    , "json");
    
   function changeProvince(){
     	var choiceVal = $("#provinceCode").val();
     	var hitcacheVal = null;
     	console.log(cacheSelectData.var2);
     	console.log(cacheSelectData.var2[choiceVal]);
     	
     	$("#cityCode").empty();
     	$("#cityCode").append("<option value=''>"+"---"+"</option>");
     	var tlist = cacheSelectData.var2[choiceVal];
     	for(var i = 0 ; i < tlist.length; i++){
     	   var tempstruct = tlist[i];
 	   		$("#cityCode").append("<option value='"+tempstruct.keyCd+"'>"+tempstruct.valueNm+"</option>");
     	}
     	 
     }
    
    /*******************************************************/
    
</script>
</head>

<body>
<div class="div_news2"> 
<table width="200" border="0" cellspacing="0" class="table_news">
  <tr>
  </tr>
</table>
</div>
<div class="div_style">
<table width="1000" border="0" align="center" cellspacing="0" class="table_style">
  <tr>
    <td class="td_leftmenu"><table width="1000" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="1000" border="0" cellpadding="0" cellspacing="0" class="title_bg">
            <tr>
              <td width="66" class="td_padding2"><img src="resources/images/login/zhuce_03.gif" width="56" height="14" ></td>
              <td width="14" class="td_padding2"><img src="resources/images/sub2/sub2_list_05.gif" width="4" height="14"></td>
              <td width="920" class="td_padding4"><span class="title_txt1">首页 &gt;</span> <span class="title_txt2">会员注册 </span></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td class="td_hight2"></td>
      </tr>
      <tr>
        <td height="265">
		<!-- 灰色边框 --><table width="1000" height="271" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10" height="10" align="left" valign="top"><img src="resources/images/login/sub2_list_10.gif" width="10" height="10"></td>
            <td width="985" background="resources/images/login/zhuce_08.gif"></td>
            <td width="10" align="right" valign="top"><img src="resources/images/login/sub2_list_10-11.gif" width="10" height="10"></td>
          </tr>
          <tr>
            <td height="35" background="resources/images/login/zhuce_12.gif"></td>
            <td class="td_padding2"><img src="resources/images/login/zhuce_16.gif" width="355" height="12"  ></td>
            <td background="resources/images/login/zhuce_14.gif"></td>
          </tr>
          <tr>
            <td height="16" background="resources/images/login/zhuce_12.gif">&nbsp;</td>
            <td class="td_padding2">
              <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="93"><img style="cursor:pointer" onclick="javascript:change();" src="resources/images/login/zhuce_211.gif" width="93" height="28"></td>
                <td width="92"><img src="resources/images/login/zhuce_231.gif" width="93" height="28"></td>
                <td width="777" background="resources/images/login/zhuce_24.gif">&nbsp;</td>
              </tr>
            </table></td>
            <td background="resources/images/login/zhuce_14.gif"></td>
          </tr>
          <tr>
            <td height="188" background="resources/images/login/zhuce_12.gif"></td>
            <td class="td_padding7">
             <form name="register" id="register" method="post" action="register/new" target="uploadframe" enctype="multipart/form-data">
              <input type="hidden" name="userType" value="P"> 
              <table width="962" height="61" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="476" align="left" valign="top"><table width="476" height="372" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20" class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td width="83" class="title_txt1">会员ID</td>
                    <td width="10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td width="363"><label>
                      <input name="userId" id="userId" type="text" class="validate[required] loginweb_input1">
                    </label></td>
                    </tr>
                    <tr>
                    <td width="20" class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td width="83" class="title_txt1">密码</td>
                    <td width="10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td width="363"><label>
                      <input name="pwd" id="pwd"  type="password" class="validate[required] loginweb_input1">
                    </label></td>
                    </tr>
                    <tr>
                    <td width="20" class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td width="83" class="title_txt1">确认密码</td>
                    <td width="10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td width="363"><label>
                      <input name="pwd2" id="pwd2"  type="password" class="validate[required,equals[pwd]] loginweb_input1">
                    </label></td>
                    </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">会员姓名</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="userName"  id="userName" type="text" class="validate[required] loginweb_input1"></td>
                    </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">个体名称</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="corpName" id="corpName" type="text" class="validate[required] loginweb_input1"></td>
                    </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">个体英文名称</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="corpEName" id="corpEName" type="text" class="loginweb_input1"></td>
                    </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">个人网址</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="website" id="website" type="text" class="loginweb_input2"></td>
                    </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">所属行业</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <select name="ocationCode" id="ocationCode" class="input2">
                      </select>
                    </label></td>
                    </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">个人证件</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><table border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="250"><input id="businessLicenseImg"  name="businessLicenseImg" type="file" class="loginweb_input1"></td>
                        
                      </tr>
                    </table></td>
                    </tr>
                  <tr>
                    <td class="td_height1">&nbsp;</td>
                    <td class="title_txt1">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td><label>
                      <input type="checkbox" name="isOpen" id="isOpen" value="checkbox">
                      <span class="title_txt1">是否公开</span></label></td>
                    </tr>
                    <tr>
                    <td class="td_height10"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="td_height9"><span class="title_txt1">证件编号</span></td>
                    <td class="td_height10"><img src="resources/images/common/main_98-103.gif" width="5" height="12" ></td>
                    <td><label><input type="text" name="businessNO" id="businessNO" class="loginweb_input3"></input></label></td>
                    </tr>
                  <tr>
                    <td class="td_height10"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="td_height9"><span class="title_txt1">个人简介</span></td>
                    <td class="td_height10"><img src="resources/images/common/main_98-103.gif" width="5" height="12" ></td>
                    <td><label><textarea name="corpIntroduction" id="corpIntroduction" class="validate[required] loginweb_input3"></textarea></label></td>
                    </tr>
                  
                  
                  <tr>
                    <td class="td_height10"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="td_height9"><span class="title_txt1">经营范畴</span></td>
                    <td class="td_height10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><textarea name="corpBis"  id="corpBis" class="loginweb_input3"></textarea></td>
                    </tr>
                </table></td>
                <td width="3"><img src="resources/images/login/zhuce_17.gif" width="3" height="420"></td>
                <td width="476" align="left" valign="top">
                	<table width="476" height="432" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20" class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td width="83" class="title_txt1">所属国家</td>
                    <td width="10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td width="363"><label>
                      <select name="country" id="country" class="loginweb_input4" >
                      </select>
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">所在地区</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><select name="provinceCode" id="provinceCode" onchange="changeProvince()" class="loginweb_input4">
                      </select>
                        <select  name="cityCode" id="cityCode" class="loginweb_input4">
                        </select>
                         </td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">地址</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="address"  id="address"  type="text" class="validate[required] loginweb_input2"></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">联系人</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input  name="contact"  id="contact"  type="text" class="validate[required] loginweb_input1"></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">职务</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input  name="ptitle"  id="ptitle"  type="text" class="loginweb_input1"></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">邮编</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input  name="postMail" id="postMail"  type="text" class="loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">固定电话</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input name="telephone" id="telephone" type="text" class="validate[custom[phone]] loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><p>移动电话</p></td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input  name="mobile" id="mobile"  type="text" class="validate[required,custom[phone]] loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><p>传真</p></td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input name="fax"  id="fax"  type="text" class="loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><p>E-Mail</p></td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input name="email" id="email" type="text" class="validate[required,custom[email]] loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><p>QQ</p></td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input name="qq" id="qq" type="text" class="loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><p>MSN</p></td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><label>
                      <input  name="msn" id="msn" type="text" class="loginweb_input1">
                    </label></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><p>个人照片</p></td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><table border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="250"><input  name="logoOrPhotoImg" id="logoOrPhotoImg"  type="file" class="loginweb_input1"></td>
                         
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td class="td_height10"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="td_height9"><span class="title_txt1">备注</span></td>
                    <td class="td_height10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><textarea  name="remark" id="remark"  class="loginweb_input3"></textarea></td>
                  </tr>
                </table></td>
              </tr>
             </table>
             </form>
            </td>
            <td background="resources/images/login/zhuce_14.gif"></td>
          </tr>
          <tr>
            <td height="10" align="left" valign="bottom"><img src="resources/images/login/zhuce_28.gif" width="10" height="10"></td>
            <td background="resources/images/login/zhuce_29.gif"></td>
            <td align="right" valign="bottom"><img src="resources/images/login/zhuce_30.gif" width="10" height="10"></td>
          </tr>
        </table>        </td>
      </tr>
      <tr>
        <td height="37" class="td_hight2"></td>
      </tr>
      <tr>
        <td class="td_hight3"><table width="1000" height="26" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="173" height="26" class="quyu_txt1"><a href="#" >请仔细阅读《网络协议书》！</a></td>
            <td width="649" align="center" valign="middle"><a href="javascript:apply();"><img src="resources/images/btn/zhuce_37.gif" width="132" height="22" ></a>   <a href="javascript:reject();"><img src="resources/images/btn/zhuce_39.gif" width="132" height="22"></a></td>
            <td width="178">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td class="td_hight3"></td>
      </tr>
    </table></td>
    </tr>
</table>
</div>
<iframe id="uploadframe" name="uploadframe" style="display:none"></iframe>
</#macro>    
